<template>
  <div>
    <div class="a1">
      <div class="a3">
        <div class="a4">
          <div class="a5" v-for="(key, index) in arr" :key="index">
            <div class="a6"><img :src="key.img" alt="" /></div>
            <div class="a7">
              <p v-text="key.p"></p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // data: [],
    };
  },
  props: ["arr"],
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  font-size: 0.6rem;
  padding: 0;
}

.a1 {
  width: 388px;
}

.a2 {
  width: 388px;
  height: 60px;
  /* background-color: yellow; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a2 b {
  margin-left: 20px;
  font-size: 20px;
}

.a2 span {
  font-weight: 700;
  margin-right: 20px;
  color: #6b4cff;
}

.a3 {
  width: 388px;
  height: 300px;
  background-color: pink;
  overflow: auto;
}

.a4 {
  width: 1000px;
  height: 300px;
  background-color: violet;
  display: flex;
  justify-content: space-evenly;
}

.a5 {
  width: 200px;
  height: 300px;
  background-color: skyblue;
}

.a6 {
  width: 200px;
  height: 220px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 10px 15px -5px black;
}

.a6 img {
  width: 200px;
  height: 220px;
}

.a7 {
  width: 180px;
  height: 42px;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 10px auto;
  text-align: center;
}
</style>